<!DOCTYPE html> 
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" lang="en">
    <head>
        <th:block th:include="include :: head('使用外部文本')" />
    </head>
    <body>
        <body>
            <table id="table"

        </table>

        <div th:replace="include :: footer"></div>
        <!-- Page specific javascripts-->
        <script th:src="@{/static/oldtoys/js/BSTable.js}"></script>
        <script>
            $(document).ready(function () {
                var SampleTable = {
                    id: "table",

                    initColumn: function () {
                        var columns = [
                            {field: 'id', title: 'ID'},
                            {field: 'name', title: '名称'},
                            {field: 'price', title: '价格',sortable:true}
                        ];
                        return columns;
                    },
                    options: {
                        sortable: true
                    }};
                var table = new BTable(SampleTable.id, "/static/json/data1.json", SampleTable.initColumn());
                SampleTable.table = table.init(SampleTable.options);
            })

        </script>

    </body>
</html>